package com.crm.dao.mapper.customMapper.courseregist;

import com.crm.model.entity.courseregist.CourseConsumeRecord;
import com.crm.model.vo.courseregist.CourseConsumeRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseConsumeRecordCustomMapper {


    /**
     * @Description: 批量插入课程产品消费记录
     * @Param: [records]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/6/4
     **/
    Boolean batchInsert(@Param("records") List<CourseConsumeRecord> records);



    /**
     * @Description: 根据报名ID取消报名消费记录
     * @Param: [registId]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/4/26
     **/
    Boolean deleteConsumeRecordByRegistId(@Param("registId") String registId);



    /**
     * @Description: 根据报名人ID列表获取消费记录
     * @Param: [registList]
     * @Return:
     * @Author: lixq-f
     * @Date: 2021/6/11
     **/
    List<CourseConsumeRecordVO> queryRecordsByRegistsId(@Param("registList") List<String> registList);

}
